<?php
class NewsTypeAction extends BaseAction{
    public function index($typeId){
       //某分类下的所有新闻
        $newsIdAll=M('newsarticles')->where("typeId={$typeId}")->select();
        $newsInfoId=M("newstypes")->where("typeId={$typeId}")->find();
        $this->assign('newsIdAll',$newsIdAll);
        $this->assign('newsInfoId',$newsInfoId);
        $this->display();
    }
}